package com.company.jrlz.entity;

import com.haulmont.cuba.core.entity.StandardEntity;

import javax.persistence.*;

@Table(name = "JRLZ_DEVICE_PRODUCT_INFO")
@Entity(name = "jrlz_DeviceProductInfo")
public class DeviceProductInfo extends StandardEntity {
    private static final long serialVersionUID = -6180426028742015735L;

    @JoinColumn(name = "DEVICE_NAME_ID")
    @ManyToOne(fetch = FetchType.LAZY)
    private Device deviceName;

    @Column(name = "LINE")
    private String line;

    @Column(name = "MATERIAL_MODEL")
    private String materialModel;

    @Column(name = "MATERIAL_ID")
    private String materialId;

    @Column(name = "TOTAL_FREE_TIME")
    private String totalFreeTime;

    @Column(name = "TOTAL_WORK_TIME")
    private String totalWorkTime;

    @Column(name = "LOCAL_MATERIAL_TIME")
    private String localMaterialTime;

    @Column(name = "AVERAGE_TIME")
    private String averageTime;

    public String getMaterialId() {
        return materialId;
    }

    public void setMaterialId(String materialId) {
        this.materialId = materialId;
    }

    public String getAverageTime() {
        return averageTime;
    }

    public void setAverageTime(String averageTime) {
        this.averageTime = averageTime;
    }

    public String getLocalMaterialTime() {
        return localMaterialTime;
    }

    public void setLocalMaterialTime(String localMaterialTime) {
        this.localMaterialTime = localMaterialTime;
    }

    public String getTotalWorkTime() {
        return totalWorkTime;
    }

    public void setTotalWorkTime(String totalWorkTime) {
        this.totalWorkTime = totalWorkTime;
    }

    public String getTotalFreeTime() {
        return totalFreeTime;
    }

    public void setTotalFreeTime(String totalFreeTime) {
        this.totalFreeTime = totalFreeTime;
    }

    public String getMaterialModel() {
        return materialModel;
    }

    public void setMaterialModel(String materialModel) {
        this.materialModel = materialModel;
    }

    public String getLine() {
        return line;
    }

    public void setLine(String line) {
        this.line = line;
    }

    public void setDeviceName(Device deviceName) {
        this.deviceName = deviceName;
    }

    public Device getDeviceName() {
        return deviceName;
    }

}